import request from '@/utils/request'

/*           sub          */
export function setTaxRate (data) {
  return request({
    url: '/order/setTaxRate',
    method: 'post',
    data
  })
}

export function getTaxRate () {
  return request({
    url: '/order/getTaxRate',
    method: 'get'
  })
}

export function getOrders (query) {
  return request({
    url: '/order/getOrders',
    method: 'get',
    params: query
  })
}

export function createOrder (data) {
  return request({
    url: '/order/createOrder',
    method: 'post',
    data
  })
}

export function updateOrder (data) {
  return request({
    url: '/order/updateOrder',
    method: 'post',
    data
  })
}
